include('shared.lua')

function ENT:Draw()

	ent = self.Entity
    self.Entity:DrawModel()
	
	if LocalPlayer():GetEyeTrace().Entity == self.Entity && EyePos():Distance( self.Entity:GetPos() ) < 512 then
		if ent:GetNetworkedBool( "loaded" ) then --if the cannon is 100% loaded
			AddWorldTip(self.Entity:EntIndex(), "Cannon: Loaded",0.5,self.Entity:GetPos(),self.Entity)
		elseif ent:GetNetworkedBool( "loading" ) then --if the cannon is loading up
			AddWorldTip(self.Entity:EntIndex(), "Cannon: Loading...",0.5,self.Entity:GetPos(),self.Entity)
		elseif ent:GetNetworkedBool( "firing" ) then --if the fuse is counting down
			AddWorldTip(self.Entity:EntIndex(), "Cannon: Firing...",0.5,self.Entity:GetPos(),self.Entity)
		else --nothing at all
			AddWorldTip(self.Entity:EntIndex(), "Cannon: Unloaded",0.5,self.Entity:GetPos(),self.Entity)
		end
	end
	
end 
